<% content_for :mid do %>
<div id="midnav_left"></div>
<div id="midnav_back"></div>
<div id="midnav_right"></div>
<% end %>
<% if @user %>
<%if @user.anonymous==true -%>
<div class="vertical"><%=image_tag "/images/nil.gif",:id=>"alter",:alt=>"注意"%>
对不起，该用户没有公开其个人资料，您可以<%=link_to_remote "发送问候", :url=>{:controller=>"info", :action=>"show_message", :id=>@user.id},:loading => "Element.show('indicator')",:complete => "Element.hide('indicator')",:update=>"message" %>。
</div>
<% else -%>
<div class="solid_line"><a href="#" onclick="history.go(-1)">返回上页</a>|
<%=show_user_menu(@user) %>
<%=link_to_remote "写信问候", :url=>{:controller=>"info", :action=>"show_message", :id=>@user.id},:loading => "Element.show('indicator')",:complete => "Element.hide('indicator')",:update=>"message"%>
</div><br>
<div id="info_sidebar">
<h1>用户资料</h1>
<div class="row_info_sidebar">
<div class="left_info_sidebar">用户名：</div>
<div class="right_info_sidebar"><span
	style="font-size:15px;color: #3366cc;"><%=h(@user.name)%></span></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">头像：</div>
<div class="right_info_sidebar"><img class="myimage"
	src=<%=url_for(:controller=>"index",:action=>"post_picture",:id=> @user.picture_id)%>
	width="60*60" /></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">性别：</div>
<div class="right_info_sidebar"><%=show_sex(@user.sex)%></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">生日：</div>
<div class="right_info_sidebar"><%=@user.birthday.strftime(" %Y年%m月%d日")%></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">注册于：</div>
<div class="right_info_sidebar"><%=@user.created_at.strftime(" %Y年%m月%d日")%></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">工作年份：</div>
<div class="right_info_sidebar"><%=@user.experience%>年</div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">电子邮件：</div>
<div class="right_info_sidebar"><%=mail_to h(@user.email)%></div>
</div>
</div>

	<li>教育背景：</li><%=@user.report_education.name%>
	<li>海外经验：</li><%=@user.report_oversea.name%>
	职业目标：<%=auto_link "http://"+h(@user.blog)%></td>
	<li>兴趣爱好：</li><%=mail_to h(@user.email)%></td>
<span id='indicator' style="display:none"><%=image_tag("/images/progress.gif")%></span>
<div id="message"></div>
<%end -%>
<% else %>
<div class="vertical"><%=image_tag "/images/nil.gif",:id=>"alter",:alt=>"注意"%>
<h2>对不起，该用户资料不存在!</h2>
</div>
<% end %>
